package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class SysSupplier {
    private String id;

    private String supplierCode;

    private String supplierName;

    private String referredToAs;

    private String materialNumber;

    private String status;

    private String createName;

    private Date createTime;

    private Integer count;

    private String nameStr;
    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "合格", "1", "不合格");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode == null ? null : supplierCode.trim();
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName == null ? null : supplierName.trim();
    }

    public String getReferredToAs() {
        return referredToAs;
    }

    public void setReferredToAs(String referredToAs) {
        this.referredToAs = referredToAs == null ? null : referredToAs.trim();
    }

    public String getMaterialNumber() {
        return materialNumber;
    }

    public void setMaterialNumber(String materialNumber) {
        this.materialNumber = materialNumber;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getNameStr() {
        return nameStr;
    }
    public String getItemStatusCn() {
        return STATUSMAP.get(getStatus());
    }
    public void setNameStr(String nameStr) {
        this.nameStr = nameStr;
    }
}